package com.hh.springboot.mapper;

import com.hh.springboot.model.ShopCart;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface ShopCartMapper extends Mapper<ShopCart> {
    List<ShopCart> getShopCarts(int uId);
    int insertShopCart(ShopCart shopCart);
    int updateShopCart(ShopCart shopCart);
    //查询单个
    ShopCart getShopCart(int commodityId, int uId);
}
